﻿//Write a program that gets two numbers from the console and prints the greater of them. Don’t use if statements.

using System;
using System.Globalization;
using System.Threading;

class GreaterNumber
{
    static void Main()
    {
        Console.Write("Enter first number: ");
        string firstNumberString = Console.ReadLine().Replace(".", ",");
        Console.Write("Enter second number: ");
        string secondNumberString = Console.ReadLine().Replace(".", ",");
        double firstNumber;
        double secondNumber;
        if (double.TryParse(firstNumberString, out firstNumber) && double.TryParse(secondNumberString, out secondNumber))
        {
            Console.WriteLine("The greater number is: {0}", Math.Max(firstNumber, secondNumber));
        }
    }
}